package net.wofly.right.repository;

import java.util.List;
import org.springframework.data.jpa.repository.Query;
import net.wofly.common.persistence.BaseRepository;
import net.wofly.right.domain.UserReceivingAddr;

public interface UserReceivingAddrRepository  extends BaseRepository<UserReceivingAddr,String> {
	
	public List<UserReceivingAddr> findByFollowUserID(String  followUserID) ;
	
	@Query("select u from UserReceivingAddr u, UserRole ur where u.userID = ur.userID and ur.roleID = ?1 ")
	public List<UserReceivingAddr> findByRoleID(String roleID) ;
}
